package com.chezhujie.www.domain;

import com.xy.core.init.mysql.BaseEntity;
import com.xy.core.init.mysql.annotation.Column;
import com.xy.core.init.mysql.annotation.Entity;
import com.xy.core.init.mysql.annotation.Id;
import com.xy.core.init.mysql.annotation.Table;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表 订单编号关联其他相关的订单详情和订单配送信息
 * Created by 汤伟杰 on 2017/6/1.
 */
@Entity
@Table(name = "czj_xy_order",describe = "订单表")
public class Czjorder extends BaseEntity {
    @Id
    @Column(describe = "主键",length = 19,inputType = "hidden")
    private String id;
    @Column(describe = "关联优惠券",length = 19,inputType = "select",inputCode = "str")
    private String couponsId;
    @Column(describe = "商家订单号",length = 25,inputType = "text")
    private String orderCode;
    @Column(describe = "用户",length = 11,inputType = "select",inputCode = "int")
    private Integer userinfoId;
    @Column(describe = "商家",length = 19,inputType = "select",inputCode = "str")
    private String businessId;
    @Column(describe = "支付对象",length = 1,inputType = "hidden")//判定是本项目的商品还是第三方的商品 0是本项目，1是集群车宝
    private Integer paymentType;
    @Column(describe = "订单类别",length = 1,inputType = "select",inputCode = "ordertype")
    private Integer orderType;
    @Column(describe = "总金额",length = 11,precision = 2,inputType = "int")
    private BigDecimal totalAmount;
    @Column(describe = "订单状态",length = 19,inputType = "select",inputCode = "orderstatus")
    private Integer status;
    @Column(describe = "下单时间",inputType = "date")
    private Date createTime;
    private Date createTimeStart;
    private Date createTimeEnd;
    @Column(describe = "更新时间",inputType = "date")
    private Date updatetime;
    private Date updatetimeStart;
    private Date updatetimeEnd;
    @Column(describe = "备注",length = 100,inputType = "text")
    private String remark;
    @Column(describe = "有效时间",inputType = "date")
    private Date validTime;
    private Date validTimeStart;
    private Date validTimeEnd;

    @Column(describe = "购买或租赁预付",length = 2,inputType = "select",inputCode = "int")
    private Integer purchaseOrLease;// 2购买 1 租赁





    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Integer getUserinfoId() {
        return userinfoId;
    }

    public void setUserinfoId(Integer userinfoId) {
        this.userinfoId = userinfoId;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public Integer getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(Integer paymentType) {
        this.paymentType = paymentType;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateTimeStart() {
        return createTimeStart;
    }

    public void setCreateTimeStart(Date createTimeStart) {
        this.createTimeStart = createTimeStart;
    }

    public Date getCreateTimeEnd() {
        return createTimeEnd;
    }

    public void setCreateTimeEnd(Date createTimeEnd) {
        this.createTimeEnd = createTimeEnd;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }


    public String getCouponsId() {
        return couponsId;
    }

    public void setCouponsId(String couponsId) {
        this.couponsId = couponsId;
    }

    public Date getValidTime() {
        return validTime;
    }

    public void setValidTime(Date validTime) {
        this.validTime = validTime;
    }

    public Date getValidTimeStart() {
        return validTimeStart;
    }

    public void setValidTimeStart(Date validTimeStart) {
        this.validTimeStart = validTimeStart;
    }

    public Date getValidTimeEnd() {
        return validTimeEnd;
    }

    public void setValidTimeEnd(Date validTimeEnd) {
        this.validTimeEnd = validTimeEnd;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getUpdatetimeStart() {
        return updatetimeStart;
    }

    public void setUpdatetimeStart(Date updatetimeStart) {
        this.updatetimeStart = updatetimeStart;
    }

    public Date getUpdatetimeEnd() {
        return updatetimeEnd;
    }

    public void setUpdatetimeEnd(Date updatetimeEnd) {
        this.updatetimeEnd = updatetimeEnd;
    }

    public Integer getPurchaseOrLease() {
        return purchaseOrLease;
    }

    public void setPurchaseOrLease(Integer purchaseOrLease) {
        this.purchaseOrLease = purchaseOrLease;
    }
}
